home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / sheep_escape.swf / scripts / DefineSprite_80 / frame_31 / DoAction.as
Encoding:
Text File  |  2012-01-07  |  480 b   |  24 lines

  1. if(1000 < Number(Now))
  2. {
  3.    Minutes = int(Now.substr(1,length(Now) - 3) / 60);
  4.    Seconds = int(Now.substr(1,length(Now) - 3) - Minutes * 60);
  5. }
  6. Centiseconds = int(Now.substr(length(Now) - 3,3));
  7. if(Number(Centiseconds) < 10)
  8. {
  9.    Centiseconds = "0" add Centiseconds;
  10. }
  11. if(Number(Seconds) < 10)
  12. {
  13.    Seconds = "0" add Seconds;
  14. }
  15. if(Number(Minutes) < 10)
  16. {
  17.    Minutes = "0" add Minutes;
  18. }
  19. if(59 < Number(int(Minutes)))
  20. {
  21.    call("Reset");
  22. }
  23. gotoAndPlay(21);
  24.